﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NGUYENTHANHDONG.OOP.Inhertance___Polimophism.TEST.EXCERCISE_01
{
    class HinhVuong: GeometricObject
    {
        double Side;

        public HinhVuong()
        { }

        public HinhVuong(double side)
        {
            this.Side = side;
        }

        public override double GetPerimeter()
        {
            return Side * 4;
        }
        public override double GetArea()
        {
            return Side * Side;
        }
    }
}
